package com.demo.baserabbitmq;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/test")
public class TestController {
    @Resource
    private RabbitSender sender;

    @RequestMapping("/send")
    public void sendMsg(){
        sender.send("this is a test",null);
    }
}
